import java.util.ArrayList;
import java.util.List;

import Car.Car;

public class Main {
    public static void main(String[] args) {
        List<Car> carList=new ArrayList<Car>();
        carList.add(Factor.CreateCar("出租车"));
        carList.add(Factor.CreateCar("卡车"));
        carList.add(Factor.CreateCar("自行车"));
        for(Car car: carList){
           System.out.println(car.getCarName());
        }
    }
}
